package com.rc.mutievcharger.dto.ylevcharger.terminal;

import com.rc.evcharger.common.annotation.ByteLength;
import com.rc.evcharger.common.base.yl.BaseYlCommand;

/**
 * Create by Yang on 2021/4/26
 * (CMD=7)充电桩对后台控制命令应答
 */
public class YlStopCommandResp extends BaseYlCommand {


    @ByteLength(length = 2)
    private String obligate1; //预留字段1
    @ByteLength(length = 2)
    private String obligate2; //预留字段1
    @ByteLength(length = 1)
    private String gunNum; //充电枪口   编号从 1 开始
    @ByteLength(length = 4)
    private String cmdAddress; //启始命令地址  参见“命令地址列表 3_1_9
    @ByteLength(length = 1)
    private String cmdCount; //命令个数
    @ByteLength(length = 2)
    private String cmdLength; //命令参数长度
    @ByteLength(length = 0)
    private String cmdParam; //命令参数 n字节

    public YlStopCommandResp() {
    }

    public YlStopCommandResp(String gunNum) {
        this.obligate1 = "00 00";
        this.obligate2 = obligate1;
        if (gunNum.length() < 2) {
            gunNum = "0" + gunNum;
        }
        this.gunNum = gunNum;
        this.cmdAddress = "02 00 00 00";
        this.cmdCount = "01";
        this.cmdLength = "04 00";
        this.cmdParam = "55 00 00 00";
    }

    public String getObligate1() {
        return obligate1;
    }

    public void setObligate1(String obligate1) {
        this.obligate1 = obligate1;
    }

    public String getObligate2() {
        return obligate2;
    }

    public void setObligate2(String obligate2) {
        this.obligate2 = obligate2;
    }

    public String getGunNum() {
        return gunNum;
    }

    public void setGunNum(String gunNum) {
        this.gunNum = gunNum;
    }

    public String getCmdCount() {
        return cmdCount;
    }

    public void setCmdCount(String cmdCount) {
        this.cmdCount = cmdCount;
    }

    public String getCmdAddress() {
        return cmdAddress;
    }

    public void setCmdAddress(String cmdAddress) {
        this.cmdAddress = cmdAddress;
    }

    public String getCmdLength() {
        return cmdLength;
    }

    public void setCmdLength(String cmdLength) {
        this.cmdLength = cmdLength;
    }

    public String getCmdParam() {
        return cmdParam;
    }

    public void setCmdParam(String cmdParam) {
        this.cmdParam = cmdParam;
    }
}
